cmake_minimum_required(VERSION 3.10)
set(CMAKE_CXX_COMPILER /usr/bin/g++-11)
set(CMAKE_C_COMPILER /usr/bin/gcc-11)
project(sjt_test)
set(CMAKE_CXX_STANDARD 20)
cmake_minimum_required(VERSION 3.15)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
add_compile_definitions(PROJECT_DIR="${PROJECT_SOURCE_DIR}")

find_package(TensorRT REQUIRED)
find_package(OpenCV 4 REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(Ceres 2 REQUIRED)
find_package(fmt REQUIRED)

include_directories(${OpenCV_INCLUDE_DIRS})
include_directories(${EIGEN3_INCLUDE_DIR})
include_directories(${TensorRT_INCLUDE_DIRS})
include_directories(${CERES_INCLUDE_DIRS})


add_executable(main main.cpp TRTModule.cpp logger.cpp)
target_link_libraries(main ${OpenCV_LIBS} ${TensorRT_LIBS} ${CERES_LIBRARIES} fmt::fmt nvonnxparser cuda)
